package tt.dz.service.imp.middleware.vo.settings;

import tt.dz.service.imp.middleware.vo.MessageField;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by luoyp on 2016/6/17.
 */
public class SettingBody
{
	@MessageField(order = 1, length = 1)
	private String executeType;
	@MessageField(order = 2, length = 1)
	private String settingType;

	public static final String SettingType_Timer = "00";
	public static final String SettingType_QrCode = "01";
	public static final String SettingType_ChargingFee = "02";
	public static final String SettingType_ServiceFee = "03";
	public static final String SettingType_WhiteList = "05";
	public static final String SettingType_UserCard = "06";
	public static final String SettingType_State = "07";
	public static final String SettingType_SerialNo = "08";

	public boolean isSettingTypeValid(String settingType)
	{
		return SettingType_SerialNo.equals(settingType) || SettingType_State.equals(settingType) || SettingType_UserCard.equals(settingType) || SettingType_WhiteList.equals(settingType) || SettingType_ServiceFee
				.equals(settingType) || SettingType_ChargingFee.equals(settingType) || SettingType_QrCode.equals(settingType) || SettingType_Timer.equals(settingType);
	}

	/*
* 对时	0x00
运营二维码	0x01
电费费率	0x02
服务费	0x03
白名单	0x05
当前用户卡号	0x06
电桩当前状态	0x07
所在地电桩的
标识	0x08
*/

	public String getExecuteType()
	{
		return executeType;
	}

	public void setExecuteType(String executeType)
	{
		this.executeType = executeType;
	}

	public String getSettingType()
	{
		return settingType;
	}

	public void setSettingType(String settingType)
	{
		this.settingType = settingType;
	}
}
